package com.yushu.authority.pojo.bo;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.yushu.common.configuration.spring.SpringMVCCustomJsonDateDeserializer;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;


/**
 * 
 * @author test
 * @CreateDate 2020-12-03 15:47:24
 */
@TableName("pm_role")
public class PmRole implements Serializable {
    private static final long serialVersionUID = 1L;
    //列开始
    @TableId(value = "id", type = IdType.UUID)
    private String id;//角色id
    private String roleName;//角色名
    private String roleSign;//角色标识,程序中判断使用,如"admin"
    private String roleType;//角色类型
    private String description;//角色描述,UI界面显示使用
    private String userId;//创建者
    private String orgId;//所属机构

    @JsonDeserialize(using = SpringMVCCustomJsonDateDeserializer.class)
    private Date createTime;//创建时间
    @JsonDeserialize(using = SpringMVCCustomJsonDateDeserializer.class)
    private Date updateTime;//更新时间
    private String updateUserId;//更新者

    //列结束
    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return this.id;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public String getRoleName() {
        return this.roleName;
    }

    public void setRoleSign(String roleSign) {
        this.roleSign = roleSign;
    }

    public String getRoleSign() {
        return this.roleSign;
    }

    public void setRoleType(String roleType) {
        this.roleType = roleType;
    }

    public String getRoleType() {
        return this.roleType;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getDescription() {
        return this.description;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserId() {
        return this.userId;
    }

    public void setOrgId(String orgId) {
        this.orgId = orgId;
    }

    public String getOrgId() {
        return this.orgId;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    public Date getCreateTime() {
        return this.createTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    public Date getUpdateTime() {
        return this.updateTime;
    }

    public void setUpdateUserId(String updateUserId) {
        this.updateUserId = updateUserId;
    }

    public String getUpdateUserId() {
        return this.updateUserId;
    }
    
    
    @Override
    public String toString() {
        return "PmRole{" +
                "id='" + id + '\'' +
                ", roleName='" + roleName + '\'' +
                ", roleSign='" + roleSign + '\'' +
                ", roleType='" + roleType + '\'' +
                ", description='" + description + '\'' +
                ", userId='" + userId + '\'' +
                ", orgId='" + orgId + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", updateUserId='" + updateUserId + '\'' +
                '}';
    }
}

